﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data {
   
    public partial class ShopInfoMap
     : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<ShopInfo> {
        public ShopInfoMap() {
            ToTable("mc_ShopInfo", "dbo");

            HasKey(t => t.Id);
            Property(t => t.Id)
                //.HasColumnName("MerchantId")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None)
                .IsRequired();

            //Relationships
            HasRequired(t => t.Merchant).WithRequiredDependent();
        }
    }
}
